/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jsalon.resources;

import static jamjun.infra.web.GSession.Request;
import java.util.Locale;
import java.util.ResourceBundle;
import javax.servlet.http.HttpSession;

/**
 *
 * @author Java
 */
public enum captionEnum {
    customer,
    customerCode,
    birthDate,
    gender,
    name,
    idCard,
    registerDate,
    titleBar_customerInfo
    ;
    public String getString() {
        try{
            ResourceBundle bundle =
            ResourceBundle.getBundle("jsalon.resources.caption", Locale.getDefault());
            return bundle.getString(this.toString());
        }catch(Exception ex){
            return ex.getMessage();
        }
    }
    public String getString(Locale locale) {
         try{
            ResourceBundle bundle =
            ResourceBundle.getBundle("jsalon.resources.caption", locale);
            return bundle.getString(this.toString());
        }catch(Exception ex){
            return ex.getMessage();
        }
    }
}
